<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            color: red;
            width: 200px;
            height: 100px;
            background-Color: #fff;
            font-Size: 16px;
        }
    </style>
</head>

<body>
    <div class="box"></div>
    <script>
        var temp = {
            className: "danger text",
            tagName: "DIV",
            innerText: "不凡学院",
            onclick: function () { alert('hi') },
            onfocus: null,
            onmouseover: null,
            title: "hello",
        }
        console.log(temp);
        
        temp["className"] = "new text";
        temp.tagName = "div";
        console.log(temp["className"]);
        console.log(temp.tagName);

    </script>
</body>

</html>